Skip to content

1.x: fix multiple chained Single.doAfterTerminate not calling actions #3883

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 29, 2016

Conversation

akarnokd
Copy link
Member

Resolves #3881.

The bug is caused by the impedance mismatch between Observable's Subscriber and Single's SingleSubscriber. The original code called onNext() which immediately signalled an onSuccess but also caused an unsubscription, preventing a delivery of onCompleted() in the inner Single.

The fix keeps onSuccess/onError rails intact throughout the chain.

@stevegury
Copy link
Member

👍

@akarnokd akarnokd merged commit 1d7e889 into ReactiveX:1.x Apr 29, 2016
@akarnokd akarnokd deleted the SingleDoAfterTerminateFix branch April 29, 2016 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants